package main

import (
	"github.com/gin-gonic/gin"
	"group-chat/api"
	"group-chat/initialize"
)

func main() {
	initialize.Mysql()

	r := gin.Default()

	r.Static("/static", ".static/upload")
	api.LoadRouter(r)
	r.Run(":8181") // 监听并在 0.0.0.0:8080 上启动服务
}
